package org.yu;

import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.EntityRenderersEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import org.yu.register.EntityRegister;
import org.yu.register.MachineRegistry;
import org.yu.register.entity.JudgementOfShamashEntityRenderer;
import org.yu.register.machine.ImpactAltarRenderer;
import org.yu.register.machine.StoveRenderer;

@Mod.EventBusSubscriber(modid = Yu.MODID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
public class ModClientEventHandle {
    @SubscribeEvent
    public static void registerRenderers(final EntityRenderersEvent.RegisterRenderers event) {
        event.registerBlockEntityRenderer(MachineRegistry.impactAltarBlockEntity.get(), ImpactAltarRenderer::new);
        event.registerBlockEntityRenderer(MachineRegistry.stoveBlockEntity.get(), StoveRenderer::new);
        event.registerEntityRenderer(EntityRegister.judgementOfShamash.get(), JudgementOfShamashEntityRenderer::new);
    }
}
